<?php

use Phinx\Migration\AbstractMigration;

class Settings extends AbstractMigration
{
    public function up()
    {
        $users = $this->table('settings', array('comment' => '网站配置'));
        $users->addColumn('name', 'string', array('comment' => '配置项目'))
              ->addColumn('short_name', 'string', array('comment' => '配置项目简称'))
              ->addColumn('profiles', 'text', array('comment' => '配置信息'))
              ->save();     
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->dropTable('settings');
    }
}
